home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1999 March / EnigmA AMIGA RUN 35 (1999)(G.R. Edizioni)(IT)[!][issue 1999-03].iso / earcd / devel / libx11 / include / x11 / shellp.h < prev    next >
C/C++ Source or Header  |  1999-01-01  |  9KB  |  323 lines

  1. /*
  2. * $XConsortium: ShellP.h,v 1.30 91/01/11 16:41:19 converse Exp $
  3. * $oHeader: ShellP.h,v 1.2 88/08/18 15:56:19 asente Exp $
  4. */
  5.  
  6. /***********************************************************
  7. Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts,
  8. and the Massachusetts Institute of Technology, Cambridge, Massachusetts.
  9.  
  10.                         All Rights Reserved
  11.  
  12. Permission to use, copy, modify, and distribute this software and its 
  13. documentation for any purpose and without fee is hereby granted, 
  14. provided that the above copyright notice appear in all copies and that
  15. both that copyright notice and this permission notice appear in 
  16. supporting documentation, and that the names of Digital or MIT not be
  17. used in advertising or publicity pertaining to distribution of the
  18. software without specific, written prior permission.  
  19.  
  20. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  21. ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  22. DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  23. ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  24. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  25. ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  26. SOFTWARE.
  27.  
  28. ******************************************************************/
  29.  
  30. /* 
  31.  * ShellP.h - Private definitions for Shell widget
  32.  * 
  33.  * Author:    Paul Asente
  34.  *         Digital Equipment Corporation
  35.  *         Western Software Laboratory
  36.  * Date:    Thu Dec 3, 1987
  37.  */
  38.  
  39. #ifndef _XtShellPrivate_h
  40. #define _XtShellPrivate_h
  41.  
  42. #include <X11/Shell.h>
  43.  
  44. /* *****
  45.  * ***** VendorP.h is included later on; it needs fields defined in the first
  46.  * ***** part of this header file
  47.  * *****
  48.  */
  49.  
  50. /***********************************************************************
  51.  *
  52.  * Shell Widget Private Data
  53.  *
  54.  ***********************************************************************/
  55.  
  56. /* New fields for the Shell widget class record */
  57.  
  58. typedef struct {
  59.     XtPointer       extension;          /* pointer to extension record      */
  60. } ShellClassPart;
  61.  
  62. typedef struct {
  63.     XtPointer next_extension;    /* 1st 4 mandated for all extension records */
  64.     XrmQuark record_type;    /* NULLQUARK; on ShellClassPart */
  65.     long version;        /* must be XtShellExtensionVersion */
  66.     Cardinal record_size;    /* sizeof(ShellClassExtensionRec) */
  67.     XtGeometryHandler root_geometry_manager;
  68. } ShellClassExtensionRec, *ShellClassExtension;
  69.  
  70. #define XtShellExtensionVersion 1L
  71. #define XtInheritRootGeometryManager ((XtGeometryHandler)_XtInherit)
  72.  
  73. typedef struct _ShellClassRec {
  74.       CoreClassPart      core_class;
  75.     CompositeClassPart composite_class;
  76.     ShellClassPart  shell_class;
  77. } ShellClassRec;
  78.  
  79. externalref ShellClassRec shellClassRec;
  80.  
  81. /* New fields for the shell widget */
  82.  
  83. typedef struct {
  84.     char       *geometry;
  85.     XtCreatePopupChildProc    create_popup_child_proc;
  86.     XtGrabKind    grab_kind;
  87.     Boolean        spring_loaded;
  88.     Boolean        popped_up;
  89.     Boolean        allow_shell_resize;
  90.     Boolean     client_specified; /* re-using old name */
  91. #define _XtShellPositionValid    ((Boolean)(1<<0))
  92. #define _XtShellNotReparented    ((Boolean)(1<<1))
  93. #define _XtShellPPositionOK    ((Boolean)(1<<2))
  94. #define _XtShellGeometryParsed    ((Boolean)(1<<3))
  95.     Boolean        save_under;
  96.     Boolean        override_redirect;
  97.  
  98.     XtCallbackList popup_callback;
  99.     XtCallbackList popdown_callback;
  100.     Visual*     visual;
  101. } ShellPart;
  102.  
  103. typedef  struct {
  104.     CorePart     core;
  105.     CompositePart     composite;
  106.     ShellPart     shell;
  107. } ShellRec, *ShellWidget;
  108.  
  109. /***********************************************************************
  110.  *
  111.  * OverrideShell Widget Private Data
  112.  *
  113.  ***********************************************************************/
  114.  
  115. /* New fields for the OverrideShell widget class record */
  116.  
  117. typedef struct {
  118.     XtPointer       extension;          /* pointer to extension record      */
  119. } OverrideShellClassPart;
  120.  
  121. typedef struct _OverrideShellClassRec {
  122.       CoreClassPart      core_class;
  123.     CompositeClassPart composite_class;
  124.     ShellClassPart  shell_class;
  125.     OverrideShellClassPart  override_shell_class;
  126. } OverrideShellClassRec;
  127.  
  128. externalref OverrideShellClassRec overrideShellClassRec;
  129.  
  130. /* No new fields for the override shell widget */
  131.  
  132. typedef struct {int frabjous;} OverrideShellPart;
  133.  
  134. typedef  struct {
  135.     CorePart     core;
  136.     CompositePart     composite;
  137.     ShellPart     shell;
  138.     OverrideShellPart override;
  139. } OverrideShellRec, *OverrideShellWidget;
  140.  
  141. /***********************************************************************
  142.  *
  143.  * WMShell Widget Private Data
  144.  *
  145.  ***********************************************************************/
  146.  
  147. /* New fields for the WMShell widget class record */
  148.  
  149. typedef struct {
  150.     XtPointer       extension;          /* pointer to extension record      */
  151. } WMShellClassPart;
  152.  
  153. typedef struct _WMShellClassRec {
  154.       CoreClassPart      core_class;
  155.     CompositeClassPart composite_class;
  156.     ShellClassPart  shell_class;
  157.     WMShellClassPart wm_shell_class;
  158. } WMShellClassRec;
  159.  
  160. externalref WMShellClassRec wmShellClassRec;
  161.  
  162. /* New fields for the WM shell widget */
  163.  
  164. typedef struct {
  165.     char       *title;
  166.     int         wm_timeout;
  167.     Boolean        wait_for_wm;
  168.     Boolean        transient;
  169.     Atom        wm_configure_denied,  wm_moved;
  170.     struct _OldXSizeHints {    /* pre-R4 Xlib structure */
  171.         long flags;
  172.         int x, y;
  173.         int width, height;
  174.         int min_width, min_height;
  175.         int max_width, max_height;
  176.         int width_inc, height_inc;
  177.         struct {
  178.             int x;
  179.             int y;
  180.         } min_aspect, max_aspect;
  181.     } size_hints;
  182.     XWMHints    wm_hints;
  183.     int base_width, base_height;
  184.     int win_gravity;
  185.     Atom title_encoding;
  186. } WMShellPart;
  187.  
  188. typedef  struct {
  189.     CorePart     core;
  190.     CompositePart     composite;
  191.     ShellPart     shell;
  192.     WMShellPart    wm;
  193. } WMShellRec, *WMShellWidget;
  194.  
  195. #include <X11/VendorP.h>
  196.  
  197. /***********************************************************************
  198.  *
  199.  * TransientShell Widget Private Data
  200.  *
  201.  ***********************************************************************/
  202.  
  203. /* New fields for the TransientShell widget class record */
  204.  
  205. typedef struct {
  206.     XtPointer       extension;          /* pointer to extension record      */
  207. } TransientShellClassPart;
  208.  
  209. typedef struct _TransientShellClassRec {
  210.       CoreClassPart      core_class;
  211.     CompositeClassPart composite_class;
  212.     ShellClassPart  shell_class;
  213.     WMShellClassPart   wm_shell_class;
  214.     VendorShellClassPart vendor_shell_class;
  215.     TransientShellClassPart transient_shell_class;
  216. } TransientShellClassRec;
  217.  
  218. externalref TransientShellClassRec transientShellClassRec;
  219.  
  220. /* New fields for the transient shell widget */
  221.  
  222. typedef struct {
  223.     Widget transient_for;
  224. } TransientShellPart;
  225.  
  226. typedef  struct {
  227.     CorePart     core;
  228.     CompositePart     composite;
  229.     ShellPart     shell;
  230.     WMShellPart    wm;
  231.     VendorShellPart    vendor;
  232.     TransientShellPart transient;    
  233. } TransientShellRec, *TransientShellWidget;
  234.  
  235. /***********************************************************************
  236.  *
  237.  * TopLevelShell Widget Private Data
  238.  *
  239.  ***********************************************************************/
  240.  
  241. /* New fields for the TopLevelShell widget class record */
  242.  
  243. typedef struct {
  244.     XtPointer       extension;          /* pointer to extension record      */
  245. } TopLevelShellClassPart;
  246.  
  247. typedef struct _TopLevelShellClassRec {
  248.       CoreClassPart      core_class;
  249.     CompositeClassPart composite_class;
  250.     ShellClassPart  shell_class;
  251.     WMShellClassPart   wm_shell_class;
  252.     VendorShellClassPart vendor_shell_class;
  253.     TopLevelShellClassPart top_level_shell_class;
  254. } TopLevelShellClassRec;
  255.  
  256. externalref TopLevelShellClassRec topLevelShellClassRec;
  257.  
  258. /* New fields for the top level shell widget */
  259.  
  260. typedef struct {
  261.     char       *icon_name;
  262.     Boolean        iconic;
  263.     Atom        icon_name_encoding;
  264. } TopLevelShellPart;
  265.  
  266. typedef  struct {
  267.     CorePart     core;
  268.     CompositePart     composite;
  269.     ShellPart     shell;
  270.     WMShellPart    wm;
  271.     VendorShellPart    vendor;
  272.     TopLevelShellPart topLevel;
  273. } TopLevelShellRec, *TopLevelShellWidget;
  274.  
  275. /***********************************************************************
  276.  *
  277.  * ApplicationShell Widget Private Data
  278.  *
  279.  ***********************************************************************/
  280.  
  281. /* New fields for the ApplicationShell widget class record */
  282.  
  283. typedef struct {
  284.     XtPointer       extension;          /* pointer to extension record      */
  285. } ApplicationShellClassPart;
  286.  
  287. typedef struct _ApplicationShellClassRec {
  288.       CoreClassPart      core_class;
  289.     CompositeClassPart composite_class;
  290.     ShellClassPart  shell_class;
  291.     WMShellClassPart   wm_shell_class;
  292.     VendorShellClassPart vendor_shell_class;
  293.     TopLevelShellClassPart top_level_shell_class;
  294.     ApplicationShellClassPart application_shell_class;
  295. } ApplicationShellClassRec;
  296.  
  297. externalref ApplicationShellClassRec applicationShellClassRec;
  298.  
  299. /* New fields for the application shell widget */
  300.  
  301. typedef struct {
  302. #if defined(__cplusplus) || defined(c_plusplus)
  303.     char *c_class;
  304. #else
  305.     char *class;
  306. #endif
  307.     XrmClass xrm_class;
  308.     int argc;
  309.     char **argv;
  310. } ApplicationShellPart;
  311.  
  312. typedef  struct {
  313.     CorePart     core;
  314.     CompositePart     composite;
  315.     ShellPart     shell;
  316.     WMShellPart    wm;
  317.     VendorShellPart    vendor;
  318.     TopLevelShellPart topLevel;
  319.     ApplicationShellPart application;
  320. } ApplicationShellRec, *ApplicationShellWidget;
  321.  
  322. #endif /* _XtShellPrivate_h */
  323.